<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
</head>
<body>
<header align="center" ><h2><a th:href="|@{'/'}news|">新闻内容管理系统</a></h2></header>
<h2>编辑界面</h2>

<div>
    <form th:method="post" th:action="|@{'/news/save/'}${news.id}|">
        <h3>标题</h3>
        <input type="text" name="title" th:value="${news.title}" required="required"><br/>
        <h3>内容</h3>
        <textarea th:text="${news.content}" id="news_content" name="content"
                  rows="10" cols="30" required="required"></textarea><br/>
        <input type="submit" value="提交">
    </form>
    <a th:href="@{'/news/delete/'+${news.id}}">
        <button>删除</button>
    </a>
</div>
</body>

</html>
   